//
// Created by tjj on 22-1-7.
//

#ifndef V4L2_APP_MASTER_RENDER_H
#define V4L2_APP_MASTER_RENDER_H

enum WindowEvent {
    WINDOW_EVENT_EXIT,
    WINDOW_EVENT_MOUSE_UP,
};

typedef void (*onWindowEvent)(enum WindowEvent event);

int window_init(const char* name, int width, int height);
int window_show_image(const char* img, size_t size);
void window_event_process(onWindowEvent windowEventFunc);

#endif //V4L2_APP_MASTER_RENDER_H
